package demo2;

import java.util.Random;
import java.util.concurrent.locks.Lock;

/**
 * @author taffywen
 * @date 2022/3/26 10:06
 */
public class Demo {

    public static void main(String[] args) {

        System.out.println(test());

        Random random = new Random(0);
        System.out.println(random.nextInt(3));




    }


    public static String test(){

        try {
            System.out.println("return之前");
            return "return";
        } catch (Exception e) {
            e.printStackTrace();
        } finally {

            System.out.println("finally");
            //return "finally";
        }
        return "";
    }
}
